package com.wpzf.ndhc.service.impl;

import com.wpzf.ndhc.domain.WpSjTbjbxxNd2024;
import com.wpzf.ndhc.domain.WpSjsbDkjbxxNdDTO;
import com.wpzf.ndhc.mapper.WpzfNdhcInfoTranslateMapper;
import com.wpzf.ndhc.service.WpzfNdhcInfoTranslateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class WpzfNdhcInfoTranslateServiceImpl implements WpzfNdhcInfoTranslateService {

    @Autowired
    private WpzfNdhcInfoTranslateMapper wpzfNdhcInfoTranslateMapper;


    @Override
    public Integer saveDb(Map<String, Object> params) {
        return wpzfNdhcInfoTranslateMapper.saveDb(params);
    }

    @Override
    public List<Map<String, Object>> queryShengDb(Map<String, Object> map) {
        return wpzfNdhcInfoTranslateMapper.queryShengDb(map);
    }

    @Override
    public List<Map<String, Object>> queryDb(Map<String, Object> map) {
        return wpzfNdhcInfoTranslateMapper.queryDb(map);
    }

    @Override
    public Integer updateDbSheng(Map<String, Object> map) {
        return wpzfNdhcInfoTranslateMapper.updateDbSheng(map);
    }

    @Override
    public Integer updateDb(Map<String, Object> map) {
        return wpzfNdhcInfoTranslateMapper.updateDb(map);
    }

    @Override
    public Integer deleteTbxxbxjNd2024(WpSjTbjbxxNd2024 wpSjTbjbxxNd2024) {
        return wpzfNdhcInfoTranslateMapper.deleteTbxxbxjNd2024(wpSjTbjbxxNd2024);
    }

    @Override
    public Integer saveTbxxbxjNd2024(WpSjTbjbxxNd2024 wpSjTbjbxxNd2024) {
        return wpzfNdhcInfoTranslateMapper.saveTbxxbxjNd2024(wpSjTbjbxxNd2024);
    }

    @Override
    public Integer pushNdSjDk(Map<String, Object> params) {
        Map<String,Object> map = new HashMap<>();
        map.put("params",params.toString());
        map.put("dkbh",params.get("tbbh"));
        map.put("xzqdm",params.get("xzqdm"));
        map.put("state",params.get("state"));
        map.put("gtytime",params.get("createtime"));
        map.put("createtime", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format((new Date()).getTime()));
        map.put("status","0");
        return wpzfNdhcInfoTranslateMapper.pushNdSjDk(map);
    }

    @Override
    public List<Map<String, Object>> t1() {
        return wpzfNdhcInfoTranslateMapper.t1();
    }
    @Override
    public Integer update(Map<String, Object> m) {
        return wpzfNdhcInfoTranslateMapper.update(m);
    }

    @Override
    public List<Map<String,Object>> queryPushNdDkLogToStatus(Map<String, Object> map) {
        return wpzfNdhcInfoTranslateMapper.queryPushNdDkLogToStatus(map);
    }

    @Override
    public List<Map<String, Object>> queryStatusdk() {
        return wpzfNdhcInfoTranslateMapper.queryStatusdk();
    }

    @Override
    public Integer updateStatusdk(Map<String, Object> map) {
        return wpzfNdhcInfoTranslateMapper.updateStatusdk(map);
    }

    @Override
    public WpSjsbDkjbxxNdDTO queryDkjbxxByDkbh(Map<String, Object> params) {
        return wpzfNdhcInfoTranslateMapper.queryDkjbxxByDkbh(params);
    }

    @Override
    public Integer deleteSjsbDkjbxxByBsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjsbDkjbxxByBsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjsbDkfjjbxxByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjsbDkfjjbxxByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjsbDkpwjbxxByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjsbDkpwjbxxByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjHcfjByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjHcfjByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjDkshshengjiNdByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjDkshshengjiNdByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjDkshshengjiNdHftgzmwjByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjDkshshengjiNdHftgzmwjByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjDkshshengjiNdQtpzwhByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjDkshshengjiNdQtpzwhByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjDkshshengjiNdQtsftgxxydssByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjDkshshengjiNdQtsftgxxydssByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjDkshshengjiNdQtsfzygdByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjDkshshengjiNdQtsfzygdByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjDkshshengjiNdWfpzwhByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjDkshshengjiNdWfpzwhByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public Integer deleteSjDkshshengjiNdWftgzmwjByDkbsm(WpSjsbDkjbxxNdDTO wpSjsbDkjbxxNdDTO) {
        return wpzfNdhcInfoTranslateMapper.deleteSjDkshshengjiNdWftgzmwjByDkbsm(wpSjsbDkjbxxNdDTO);
    }

    @Override
    public String getXmcByXzqdm(String xzqdm) {
        return wpzfNdhcInfoTranslateMapper.getXmcByXzqdm(xzqdm);
    }

    @Override
    public List<Map<String, Object>> t2() {
        return wpzfNdhcInfoTranslateMapper.t2();
    }

    @Override
    public int updateValue(Map<String, Object> m) {
        return wpzfNdhcInfoTranslateMapper.updateValue(m);
    }

}
